#include<stdio.h>
typedef struct ST_
{
	float fReal;
	float fImage;
}ST_COMPLEX;

ST_COMPLEX add(ST_COMPLEX x, ST_COMPLEX y) {
	ST_COMPLEX z;
	z.fReal = x.fReal + y.fReal;
	z.fImage = x.fImage + y.fImage;
	return z;
}

void main() {
	ST_COMPLEX a = { 2,3 }, b = { 4,5 }, sum;
	sum = add(a, b);   //结构体类型也可以作为返回值调用运算
	printf("(2+3i)+(4+5i)=%.2f+%.2fi\n", sum.fReal, sum.fImage);
}
